<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
	"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
	"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="cn.firstsoft.modules.portal.domain">
  <class name="PortletPage" table="F_POR_PORTLETPAGE">
  		<id name="id" type="integer">
            <column name="id" />
            <generator class="native">
            	<param name="sequence">PORTLETPAGE_ID_SEQ</param>
            </generator>
        </id>
        <property name="title" type="string">
            <column name="title" length="20" />
        </property>
        <property name="xPos" type="integer">
            <column name="x_pos" />
        </property>
        <property name="yPos" type="integer">
            <column name="y_pos" />
        </property>
        <property name="isShowTitle" type="integer">
            <column name="is_show_title" />
        </property>
        <property name="showLength" type="integer">
            <column name="show_length" />
        </property>
        <many-to-one name="page" class="cn.firstsoft.modules.portal.domain.Page" fetch="select">
            <column name="page_id" not-null="true" />
        </many-to-one>
        <many-to-one name="portlet" class="org.springside.modules.security.domain.Portlet" fetch="select">
            <column name="portlet_id" />
        </many-to-one>
  </class>
</hibernate-mapping>